import sys

import pygame
from settings import *

pygame.init()


screen = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption('pie_game')
font = pygame.font.Font(None,font_size)
fontImage = font.render('text',True,GREEN)

def drow_font(screen:pygame.display,text:str,font_size:int,color:tuple,dest:tuple):
    font = pygame.font.Font(None,font_size)
    fontImage = font.render(text,True,color)
    screen.blit(fontImage,dest)

while True:
    for event in pygame.event.get():
        if event.type in (pygame.QUIT,pygame.KEYDOWN):
            sys.exit()
    screen.fill((BLUE))
    drow_font(screen,'hellow',font_size,GREEN,(100,100))
    pygame.display.update()